<%--
  Created by IntelliJ IDEA.
  User: stone
  Date: 2022/9/2
  Time: 10:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>文件上传的表单</h1>
<form action="upload/file" enctype="multipart/form-data" method="post">
    <%--input标签的name属性就是请求参数名 → 要和形参名对应起来，也就是name属性写的是啥，形参就写啥--%>
    <input type="file" name="myfile"><br>
    <input type="submit">
</form>
<hr>
<h1>多个文件上传的表单</h1>
<form action="upload/files" enctype="multipart/form-data" method="post">
    <%--input标签的name属性就是请求参数名 → 要和形参名对应起来，也就是name属性写的是啥，形参就写啥--%>
    <input type="file" multiple name="myfiles"><br>
    <input type="submit">
</form>
</body>
</html>
